package com.imchen.cms.cmscore.service;


import com.imchen.cms.exception.CmsException;

import java.util.HashMap;

/**
 * @author imchen
 * @create: 2019-01-11 15:32
 **/
public interface BaseService<T> {
    HashMap<String,Integer> add(T t) throws CmsException;
    T findById(int id) throws CmsException;
    int removeById(int id) throws CmsException;
    int deleteById(int id) throws CmsException;
    int update(T t) throws CmsException;

}